package com.adinnet.api.child.mapper;

import com.adinnet.api.child.model.Child;
import com.adinnet.api.child.model.vo.ChildRankResp;
import com.adinnet.api.child.model.vo.ChildDetailsResp;
import com.adinnet.api.child.model.vo.ChildResp;
import com.adinnet.api.order.model.vo.OrderDetailsResp;
import com.adinnet.api.order.model.vo.OrderResp;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 儿童表 Mapper 接口
 * </p>
 *
 * @author zYshuai
 * @since 2020-12-02
 */
public interface ChildMapper extends BaseMapper<Child> {

    List<ChildResp> details(@Param("id") Integer id);

    Page<OrderResp> orderList(Page<Object> objectPage, @Param("childId") Integer childId);

    OrderDetailsResp orderDetails(@Param("orderNo") String orderNo);

    List<ChildRankResp> getChildRankList(@Param("limit")Integer limit, @Param("pageNum")Integer pageNum);

    ChildRankResp getChildRank(@Param("childId")Integer childId);

    ChildDetailsResp information(@Param("id") Integer id);
}
